<%-- 
    Document   : obtener-id-otros
    Created on : 25/09/2010, 10:06:37 PM
    Author     : Eduardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.io.*" %>
<%@page import="java.util.*" %>
<%@page import="pe.gob.pnp.digitalizar.beans.*" %>
<%@page import="pe.gob.pnp.digitalizar.despachadores.*" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<jsp:useBean id="documento" class="pe.gob.pnp.digitalizar.beans.DocumentoDigitalizadoBean" scope="request"/>
<jsp:setProperty name="documento" property="*"/>

<%
    Properties prop = new Properties();
    FileInputStream in = new FileInputStream(application.getRealPath("/WEB-INF/classes/pe/gob/pnp/digitalizar/config.properties"));
    prop.load(in);
    in.close();
    int otros = Integer.parseInt(prop.getProperty("tipoDocumento.otros"));
    documento.setIdTipoDocumento(otros);
    DocumentoDespachador.obtenerDocumentoOtros(documento);
%>

{
    id: "${documento.id}"
}